package systemPackage;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


public class LocalStrings {

	private static List<String> englishLocalStrings = new ArrayList<String>();
	private static List<String> turkishLocalStrings = new ArrayList<String>();
	
	public static void populateLocalStrings(){
		englishLocalStrings = Arrays.asList("English", "Client Name :", "Client Surname :", "Save Client", "Create Client", "Stored new client :",						// 5
				"Enter Clients ID to Edit :", "Edit Client", "edited Client :", "list Clients","Create Port", "Port Name :",											// 11
				"Ports city", "Port Country", "Next", "Stored new Port :"," with Distance :","Next Port", "List Ports",													// 18
				"Save Port", "Select Ship : ", "Select Route : ", "Create a Voyage","Set Prices", "Set price for this User Type : ", "Save Voyage", 					// 25
				"Stored New Voyage : ", "Voyage Name : ", "List Voyages", "Client Identification Number : ", "Liquid Cargo", "Solid Cargo", "Cabin", "Start Sale", 		// 33
				"Select Sale Type : ", "Make Sale", "Set Route", "Select Route : ", "set Voyage", "Select Voyage : ", "Finish Sale", "Starting No : ",					// 41
				"Last No : ", "You have entered a invalid clientID", "Invalid Client", "The total price of that tickets is : ", "Confirm Price",						// 46 
				"Stored new Sale : ");
		
		turkishLocalStrings = Arrays.asList("Turkce", "Musteri Adi :", "Musteri Soyadi :", "Musteri Kaydet", "Musteri Olustur",  "Yeni musteri kaydedildi :", 			// 5
				"Duzenlemek istediginiz Musterinin Numarasini Giriniz", "Musteri Duzenle", "Musteri Duzenlendi :", "Musterileri Listele","Liman Ekle", "Liman Adi :",	// 11
				"Liman�n sehri", "limanin Ulkesi", "Ileri", "Yeni Liman Kaydedildi :"," ile Arasindaki Mesafeyi Giriniz :","Sonraki Liman", "Limanlari Listele",		// 18
				"Liman Kaydet", "Gemi Seciniz : ", "Guzergah Secini : ", "Sefer Ekle", "Fiyatlari Belirle", "Su musteri tipi icin fiyat belirle : ", "Seferi Kaydet", 	// 25
				"Yeni Sefer Kaydedildi : ", "Sefer Adi : ", "Sefer Listele", "Musteri tan�mlama Numarasi : ", "Sivi Kargo", "Kati Kargo", "Kamara", "Satisa Basla", 	// 33
				"Satis Tipi Seciniz : ", "Satis Yap", "Guzergah Sec", "Guzergah Secimi : ", "Sefer Sec", "Sefer Secimi : ", "Satisi Tamamla", "Baslangic Numarasi : ",	// 41
				"Bitis Numarasi : ","Gecerli olmayan bir MusteriID girdiniz.", "Gecersiz Musteri", "Alinan Biletlerin Toplam Fiyati : ", "Fiyat Onayi",					// 46 
				"Satis kaydedildi :");
	}
	
	public static String getLocalString(int stringID){
		if ( MainSystem.LANGUAGE == 0 ) { //if language is english
			return englishLocalStrings.get(stringID);
		}
		if ( MainSystem.LANGUAGE == 1 ) { //if language is turkish
			return turkishLocalStrings.get(stringID);
		}
		return englishLocalStrings.get(stringID); // if no language is set, text shown as english.
	}
}
